//
//  UIView+TTotheAdd.h
//  TaTogether
//
//  Created by 九月 on 8/20/24.
//

#import <UIKit/UIKit.h>

const static CGFloat hajimiPadding02 = 2.0;
const static CGFloat hajimiPadding04 = 4.0;
const static CGFloat hajimiPadding06 = 6.0;
const static CGFloat hajimiPadding08 = 8.0;
const static CGFloat hajimiPadding10 = 10.0;
const static CGFloat hajimiPadding11 = 11.0;
const static CGFloat hajimiPadding12 = 12.0;
const static CGFloat hajimiPadding13 = 12.0;
const static CGFloat hajimiPadding14 = 15.0;
const static CGFloat hajimiPadding16 = 16.0;
const static CGFloat hajimiPadding15 = 15.0;

const static CGFloat hajimiPadding20 = 20.0;
const static CGFloat hajimiButtonHeight50 = 50.0;

const static CGFloat hajimiFontOfSize08 = 8.0;
const static CGFloat hajimiFontOfSize10 = 10.0;
const static CGFloat hajimiFontOfSize11 = 11.0;
const static CGFloat hajimiFontOfSize12 = 12.0;
const static CGFloat hajimiFontOfSize114 = 14.0;
const static CGFloat hajimiFontOfSize15 = 15.0;
const static CGFloat hajimiFontOfSize16 = 16.0;
const static CGFloat hajimiFontOfSize17 = 16.0;

NS_ASSUME_NONNULL_BEGIN

@interface UIView (TTotheAdd)

- (void)tatogetPushControllerWithName:(NSString *)name;

UIEdgeInsets kYOUFanSafaInsets(void);
CGFloat kYOUFanNavHeight(void);

@property (nonatomic) CGFloat left;        ///< Shortcut for frame.origin.x.
@property (nonatomic) CGFloat top;         ///< Shortcut for frame.origin.y
@property (nonatomic) CGFloat right;       ///< Shortcut for frame.origin.x + frame.size.width
@property (nonatomic) CGFloat bottom;      ///< Shortcut for frame.origin.y + frame.size.height
@property (nonatomic) CGFloat width;       ///< Shortcut for frame.size.width.
@property (nonatomic) CGFloat height;      ///< Shortcut for frame.size.height.
@property (nonatomic) CGFloat centerX;     ///< Shortcut for center.x
@property (nonatomic) CGFloat centerY;     ///< Shortcut for center.y
@property (nonatomic) CGPoint origin;      ///< Shortcut for frame.origin.
@property (nonatomic) CGSize  size;        ///< Shortcut for frame.size.

/**
 Returns the view's view controller (may be nil).
 */
@property (nullable, nonatomic, readonly) UIViewController *viewController;

@property (assign, nonatomic) CGFloat ttotheCornerRadius;

@property (assign, nonatomic) BOOL ttotheScaleAspectFill;

- (void)ttothe_cornerRadius:(CGFloat)cunguRadius cunhuaRectCorners:(UIRectCorner)habibiCorners;

- (UIImage *)ttotheImageFromView;

@end


NS_ASSUME_NONNULL_END
